"""
This test outputs:
hello bob
10
10

From this I understand that f() starts running with the same environment but any changes won't
reflect in the main execution"""

from multiprocessing import Process

A = 10

def f(name):
    global A
    print 'hello', name
    print A
    A = 20

if __name__ == '__main__':
    p = Process(target=f, args=('bob',))
    p.start()
    p.join()
    print A
